package cn.edu.gduf.luowowo.ask.domain;

import cn.edu.gduf.luowowo.article.domain.Destination;
import cn.edu.gduf.luowowo.common.domain.BaseDomain;
import cn.edu.gduf.luowowo.member.domain.UserInfo;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * 问答对象
 */
@Getter
@Setter
public class Question extends BaseDomain {
    public static final int STATE_WAITING = 1;  //待发布(审核中)
    public static final int STATE_RELEASE = 2;  //发布
    public static final int STATE_REJECT = 3;  //拒绝

    private String title;               //标题
    private UserInfo author;                //提问人
    private Destination dest;               //关联目的地
    private String coverUrl;                //问答封面
    private Date createTime;            //问答创建时间
    private Date lastUpdateTime;        //最近更新时间
    private Date releaseTime;           //发布时间
    private Integer sharenum;           //分享数
    private Integer replynum;           //回答数
    private Integer viewnum;            //浏览数
    private Integer focusnum;           //关注数
    private int thumbsupnum; //点赞个数
    private String summary;  //内容摘要
    private Integer state = STATE_WAITING;              //提问状态     （待审核  发布  拒绝）
    private QuestionContent content;    //问答内容
    private List<QuestionTag> tagsList;     //关联标签
}